﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebsiteAdmin.Wilson.Focus
{
    public partial class FocusList : System.Web.UI.Page
    {
        protected string strCon = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                strCon = Global.ConnWilson;
                GetFocusList(strCon);     //获取幻灯片列表
            }
        }

        /// <summary>
        /// 获取幻灯片列表
        /// </summary>
        protected void GetFocusList(string strCon)
        {
            DataTable dt = new DataTable();
            dt = new Bll.FocusSlide().GetFocusList(strCon);
            if (dt != null && dt.Rows.Count > 0)
            {
                this.repFocusList.DataSource = dt.DefaultView;
                this.repFocusList.DataBind();
                dt.Dispose();
            }
        }
    }
}
